// psql -h 192.168.0.146 -U postgres -d postgres -p 5432 -W qw123666

// https://sdpro.top/blog/html/article/1231.html

// bun install sqlite3

const sql = require('sqlite3').verbose();

// const db = new sql.Database("sql.db");

const db = new sql.Database('database.db', (err) => {
    if (err) throw err;
    console.log("数据库初始化完成");
});
db.run("CREATE TABLE user(id INT)");
db.close()

// https://rmp135.github.io/sql-ts/#/

// https://www.prisma.io/dataguide/intro

// 对比前端的几个 ORM 框架
// https://juejin.cn/post/6878138666683826190

// https://github.com/typeorm/typeorm

// https://typeorm.bootcss.com/